import Vue from 'vue'
import App from './App.vue'
// 引入router/index.js 并加入到Vue中
import router from './router'
// 引入element-ui
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);
// 引入axios
import axios from 'axios'
axios.defaults.baseURL = 'http://localhost:8080/bdms-api'
axios.defaults.headers.post['Contenst-Type'] = 'application/json;'
Vue.prototype.$axios = axios
new Vue({
  el: '#app',
  router,
  render: h => h(App)
})
